.class public Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;
.super Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;
.source "DirectoryPreferenceFragment.java"


# instance fields
.field private a:Lcom/estrongs/android/pop/l;

.field private b:Landroidx/preference/EditTextPreference;

.field private c:Landroidx/preference/EditTextPreference;

.field private d:Landroidx/preference/EditTextPreference;

.field private e:Ljava/lang/String;

.field private f:I


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    const/4 v0, 0x0

    .line 3
    iput v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->f:I

    return-void
.end method

.method private a(Ljava/lang/String;)Z
    .locals 2

    const/4 v0, 0x0

    if-eqz p1, :cond_1

    .line 15
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_0

    goto :goto_0

    .line 16
    :cond_0
    :try_start_0
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/estrongs/fs/f;->c(Ljava/lang/String;)Z

    move-result p1
    :try_end_0
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_0

    return p1

    :catch_0
    move-exception p1

    .line 17
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_1
    :goto_0
    return v0
.end method

.method private b()V
    .locals 3

    .line 14
    iget-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    if-eqz v0, :cond_7

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_1

    .line 15
    :cond_0
    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 16
    invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z

    move-result v0

    if-eqz v0, :cond_5

    .line 17
    iget v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->f:I

    if-nez v0, :cond_1

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->b:Landroidx/preference/EditTextPreference;

    iget-object v1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 19
    iget-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->b:Landroidx/preference/EditTextPreference;

    iget-object v1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroidx/preference/EditTextPreference;->setText(Ljava/lang/String;)V

    .line 20
    iget-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->a:Lcom/estrongs/android/pop/l;

    iget-object v1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/l;->V(Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    const/4 v1, 0x2

    if-ne v0, v1, :cond_3

    .line 21
    iget-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->c:Landroidx/preference/EditTextPreference;

    if-eqz v0, :cond_2

    .line 22
    iget-object v1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 23
    iget-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->c:Landroidx/preference/EditTextPreference;

    iget-object v1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroidx/preference/EditTextPreference;->setText(Ljava/lang/String;)V

    .line 24
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->a:Lcom/estrongs/android/pop/l;

    iget-object v1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/l;->N(Ljava/lang/String;)V

    goto :goto_0

    :cond_3
    const/4 v1, 0x3

    if-ne v0, v1, :cond_6

    .line 25
    iget-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->d:Landroidx/preference/EditTextPreference;

    if-eqz v0, :cond_4

    .line 26
    iget-object v1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 27
    iget-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->d:Landroidx/preference/EditTextPreference;

    iget-object v1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroidx/preference/EditTextPreference;->setText(Ljava/lang/String;)V

    .line 28
    :cond_4
    iget-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->a:Lcom/estrongs/android/pop/l;

    iget-object v1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/l;->N(Ljava/lang/String;)V

    goto :goto_0

    .line 29
    :cond_5
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f11077f

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    :cond_6
    :goto_0
    return-void

    :cond_7
    :goto_1
    const-string v0, "/sdcard/"

    .line 30
    iput-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    return-void
.end method

.method static synthetic b(Landroid/content/DialogInterface;I)V
    .locals 0

    .line 13
    invoke-interface {p0}, Landroid/content/DialogInterface;->dismiss()V

    return-void
.end method

.method private d()V
    .locals 3

    .line 1
    new-instance v0, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    const v1, 0x7f110660

    .line 2
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    const v1, 0x7f110780

    .line 3
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->a(I)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance v1, Lcom/estrongs/android/ui/preference/fragments/f0;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/preference/fragments/f0;-><init>(Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;)V

    const v2, 0x7f1102a2

    .line 4
    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    sget-object v1, Lcom/estrongs/android/ui/preference/fragments/h0;->a:Lcom/estrongs/android/ui/preference/fragments/h0;

    const v2, 0x7f11029d

    .line 5
    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 6
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q$n;->c()Lcom/estrongs/android/ui/dialog/q;

    return-void
.end method


# virtual methods
.method public synthetic a(Landroid/content/DialogInterface;I)V
    .locals 0

    .line 13
    invoke-direct {p0}, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->b()V

    .line 14
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    return-void
.end method

.method public synthetic a(Landroidx/preference/Preference;Ljava/lang/Object;)Z
    .locals 4

    .line 1
    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    .line 2
    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p2

    const-string v0, ""

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    const/4 v0, 0x0

    if-eqz p2, :cond_0

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->d()V

    return v0

    .line 4
    :cond_0
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->a(Ljava/lang/String;)Z

    move-result p2

    .line 5
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    invoke-virtual {p1, v1}, Ljava/lang/String;->charAt(I)C

    move-result v1

    const/16 v3, 0x2f

    if-eq v1, v3, :cond_1

    .line 6
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "/"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 7
    :cond_1
    iput-object p1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    .line 8
    iput v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->f:I

    if-eqz p2, :cond_2

    .line 9
    iget-object p2, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->b:Landroidx/preference/EditTextPreference;

    invoke-virtual {p2, p1}, Landroidx/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 10
    iget-object p2, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->b:Landroidx/preference/EditTextPreference;

    invoke-virtual {p2, p1}, Landroidx/preference/EditTextPreference;->setText(Ljava/lang/String;)V

    .line 11
    iget-object p2, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->a:Lcom/estrongs/android/pop/l;

    invoke-virtual {p2, p1}, Lcom/estrongs/android/pop/l;->V(Ljava/lang/String;)V

    return v2

    .line 12
    :cond_2
    invoke-direct {p0}, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->d()V

    return v0
.end method

.method public synthetic b(Landroidx/preference/Preference;Ljava/lang/Object;)Z
    .locals 4

    .line 1
    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    .line 2
    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p2

    const-string v0, ""

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    const/4 v0, 0x0

    if-eqz p2, :cond_0

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->d()V

    return v0

    .line 4
    :cond_0
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->a(Ljava/lang/String;)Z

    move-result p2

    .line 5
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    invoke-virtual {p1, v1}, Ljava/lang/String;->charAt(I)C

    move-result v1

    const/16 v3, 0x2f

    if-eq v1, v3, :cond_1

    .line 6
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "/"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 7
    :cond_1
    iput-object p1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    const/4 v1, 0x2

    .line 8
    iput v1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->f:I

    if-eqz p2, :cond_2

    .line 9
    iget-object p2, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->c:Landroidx/preference/EditTextPreference;

    invoke-virtual {p2, p1}, Landroidx/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 10
    iget-object p2, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->a:Lcom/estrongs/android/pop/l;

    invoke-virtual {p2, p1}, Lcom/estrongs/android/pop/l;->N(Ljava/lang/String;)V

    .line 11
    iget-object p2, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->c:Landroidx/preference/EditTextPreference;

    invoke-virtual {p2, p1}, Landroidx/preference/EditTextPreference;->setText(Ljava/lang/String;)V

    return v2

    .line 12
    :cond_2
    invoke-direct {p0}, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->d()V

    return v0
.end method

.method public synthetic c(Landroidx/preference/Preference;Ljava/lang/Object;)Z
    .locals 4

    .line 1
    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    .line 2
    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p2

    const-string v0, ""

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    const/4 v0, 0x0

    if-eqz p2, :cond_0

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->d()V

    return v0

    .line 4
    :cond_0
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->a(Ljava/lang/String;)Z

    move-result p2

    .line 5
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    invoke-virtual {p1, v1}, Ljava/lang/String;->charAt(I)C

    move-result v1

    const/16 v3, 0x2f

    if-eq v1, v3, :cond_1

    .line 6
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "/"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 7
    :cond_1
    iput-object p1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->e:Ljava/lang/String;

    const/4 v1, 0x3

    .line 8
    iput v1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->f:I

    if-eqz p2, :cond_2

    .line 9
    iget-object p2, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->d:Landroidx/preference/EditTextPreference;

    invoke-virtual {p2, p1}, Landroidx/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 10
    iget-object p2, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->d:Landroidx/preference/EditTextPreference;

    invoke-virtual {p2, p1}, Landroidx/preference/EditTextPreference;->setText(Ljava/lang/String;)V

    .line 11
    iget-object p2, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->a:Lcom/estrongs/android/pop/l;

    invoke-virtual {p2, p1}, Lcom/estrongs/android/pop/l;->Q(Ljava/lang/String;)V

    return v2

    .line 12
    :cond_2
    invoke-direct {p0}, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->d()V

    return v0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-super {p0, p1}, Landroidx/preference/PreferenceFragmentCompat;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/ui/preference/TabletSettingsActivity;->b(Landroid/content/Context;)Z

    move-result p1

    if-eqz p1, :cond_0

    const p1, 0x7f140022

    .line 3
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->addPreferencesFromResource(I)V

    goto :goto_0

    :cond_0
    const p1, 0x7f140014

    .line 4
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->addPreferencesFromResource(I)V

    .line 5
    :goto_0
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->a:Lcom/estrongs/android/pop/l;

    const-string v0, "Web"

    .line 6
    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/l;->l(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const-string v0, "root_dir"

    .line 7
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    check-cast v0, Landroidx/preference/EditTextPreference;

    iput-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->b:Landroidx/preference/EditTextPreference;

    .line 8
    invoke-virtual {v0, p1}, Landroidx/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->b:Landroidx/preference/EditTextPreference;

    invoke-virtual {v0, p1}, Landroidx/preference/EditTextPreference;->setText(Ljava/lang/String;)V

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->b:Landroidx/preference/EditTextPreference;

    new-instance v0, Lcom/estrongs/android/ui/preference/fragments/g0;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/preference/fragments/g0;-><init>(Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;)V

    invoke-virtual {p1, v0}, Landroidx/preference/Preference;->setOnPreferenceChangeListener(Landroidx/preference/Preference$OnPreferenceChangeListener;)V

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->a:Lcom/estrongs/android/pop/l;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/l;->s()Ljava/lang/String;

    move-result-object p1

    const-string v0, "bt_dir"

    .line 12
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    check-cast v0, Landroidx/preference/EditTextPreference;

    iput-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->c:Landroidx/preference/EditTextPreference;

    .line 13
    sget-boolean v1, Lcom/estrongs/android/pop/j;->e:Z

    if-eqz v1, :cond_1

    .line 14
    invoke-virtual {v0, p1}, Landroidx/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->c:Landroidx/preference/EditTextPreference;

    invoke-virtual {v0, p1}, Landroidx/preference/EditTextPreference;->setText(Ljava/lang/String;)V

    .line 16
    iget-object p1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->c:Landroidx/preference/EditTextPreference;

    new-instance v0, Lcom/estrongs/android/ui/preference/fragments/d0;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/preference/fragments/d0;-><init>(Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;)V

    invoke-virtual {p1, v0}, Landroidx/preference/Preference;->setOnPreferenceChangeListener(Landroidx/preference/Preference$OnPreferenceChangeListener;)V

    goto :goto_1

    .line 17
    :cond_1
    invoke-virtual {p0}, Landroidx/preference/PreferenceFragmentCompat;->getPreferenceScreen()Landroidx/preference/PreferenceScreen;

    move-result-object p1

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->c:Landroidx/preference/EditTextPreference;

    invoke-virtual {p1, v0}, Landroidx/preference/PreferenceGroup;->removePreference(Landroidx/preference/Preference;)Z

    const/4 p1, 0x0

    .line 19
    iput-object p1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->c:Landroidx/preference/EditTextPreference;

    .line 20
    :goto_1
    iget-object p1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->a:Lcom/estrongs/android/pop/l;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/l;->z()Ljava/lang/String;

    move-result-object p1

    const-string v0, "download_dir"

    .line 21
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    check-cast v0, Landroidx/preference/EditTextPreference;

    iput-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->d:Landroidx/preference/EditTextPreference;

    .line 22
    invoke-virtual {v0, p1}, Landroidx/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 23
    iget-object v0, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->d:Landroidx/preference/EditTextPreference;

    invoke-virtual {v0, p1}, Landroidx/preference/EditTextPreference;->setText(Ljava/lang/String;)V

    .line 24
    iget-object p1, p0, Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;->d:Landroidx/preference/EditTextPreference;

    new-instance v0, Lcom/estrongs/android/ui/preference/fragments/e0;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/preference/fragments/e0;-><init>(Lcom/estrongs/android/ui/preference/fragments/DirectoryPreferenceFragment;)V

    invoke-virtual {p1, v0}, Landroidx/preference/Preference;->setOnPreferenceChangeListener(Landroidx/preference/Preference$OnPreferenceChangeListener;)V

    return-void
.end method
